package com.t114514.demo.service.impl;

import com.t114514.demo.mapper.UserMapper;
import com.t114514.demo.pojo.User;
import com.t114514.demo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public User findUser(String userAccount) {
        return userMapper.selectUser(userAccount);
    }

    @Override
    public void addUser(String userAccount, String password) {
        userMapper.insertUser(userAccount, password);
    }
}
